<?php
/**
 * Created by PhpStorm.
 * User: wanghaibo
 * Date: 18/4/17
 * Time: 11:38
 */
use Illuminate\Support\Facades\Auth;


$page_path = "../components/page/";
return [
    "menu"  =>  [
        [
            "index" =>  "index",
            "icon"  =>  "fa fa-dashboard",
            "title"  =>  "首页"
        ],
        [
            "index" =>  "user_manage",
            "icon"  =>  "fa fa-user",
            "title"  =>  "用户管理",
            "subs"  =>  [
                [
                    "index" =>  "users",
                    "title" =>  "所有用户",
                    "permission"    =>  function(){return Auth::can('users');}
                ],
                [
                    "index" =>  "usersAccount",
                    "title"  =>  "用户账单"
                ]
            ]
        ]

    ]
];